package com.lanchetech.bean.response;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.lanchetech.entity.Identity;
import com.lanchetech.entity.Privilege;
import com.lanchetech.entity.Role;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ColumnWidth(20)
public class UserDetailResp {

    @ExcelProperty("用户编号")
    private Long id;

    @ExcelIgnore
    private String openid;

    @ExcelProperty("手机号")
    private String username;

    @ExcelProperty("昵称")
    private String nickname;

    @ExcelIgnore
    private String avatar;

    @ExcelProperty("积分")
    private BigDecimal coin;

    @ExcelProperty("佣金余额")
    private BigDecimal point;

    @ExcelIgnore
    private Integer exp;

    @ExcelIgnore
    private Integer level;

    @ExcelIgnore
    private Date lastPasswordResetDate;

    @ExcelProperty("状态0注销1正常")
    private Integer status;

    @ExcelProperty("注册时间")
    private Date createdAt;

    @ExcelProperty("更新时间")
    private Date updatedAt;

    @ExcelIgnore
    private String inviteCode;

    @ExcelIgnore
    private String province;

    @ExcelIgnore
    private String city;

    @ExcelIgnore
    private Integer gender;

    @ExcelIgnore
    private Long privilegeCommission;

    @ExcelIgnore
    private String realName;

    @ExcelIgnore
    private String idCard;

    @ExcelIgnore
    private String password;

    @ExcelIgnore
    private BigDecimal cardPoint;

    @ExcelIgnore
    private BigDecimal adPoint;

    @ExcelIgnore
    private List<Role> roles;

    @ExcelIgnore
    private Long shopId;

    @ExcelIgnore
    private String chatToken;

    @ExcelIgnore
    private Long msgUserId;

    @ExcelIgnore
    private List<Privilege> privilegeList;

    @ExcelIgnore
    private Byte currentIdentity;

    @ExcelIgnore
    private Identity identity;

    @ExcelIgnore
    private Byte staffType;

    @ExcelIgnore
    private Boolean isBoss;

    /**
     *  0：没有抽奖机会 1：有抽奖机会
     */
    @ExcelIgnore
    private Integer whetherLottery;
}
